package es.unileon.maquinariapp;

import es.unileon.maquinariapp.util.SystemUiHider;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * An example full-screen activity that shows and hides the system UI (i.e.
 * status bar and navigation/system bar) with user interaction.
 * 
 * @see SystemUiHider
 */
public class StartActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_start);
		final Button accessButton = (Button) findViewById(R.id.accessButton);
		
		accessButton.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				//Accedemos a la vista del login
				Intent loginAndroidIntent = new Intent(StartActivity.this,
						AccesoActivity.class);
				startActivity(loginAndroidIntent);
			}
		});

	}
	
	@Override
	protected void onRestart(){
		super.onRestart();
	}
	
	@Override
	protected void onResume() {
		super.onResume();
	}

	@Override
	protected void onPause() {
		super.onPause();
	}

	@Override
	protected void onStop() {
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}
}
